package com.pmcc.core.repository;

import com.pmcc.core.entity.security.Menu;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
/**
 * Created by syk on 17/6/23.
 */
public interface MenuRepository extends JpaRepository<Menu, String> {

    List<Menu> findByParentIdOrderBySortNo(String parentId);

    List<Menu> findByOrderBySortNo();

    List<Menu> findByParentId(String parentId);
}
